//
//  CommonTools.swift
//  MYWeibo
//
//  Created by Magic Yu on 16/4/14.
//  Copyright © 2016年 Magic Yu. All rights reserved.
//

import UIKit
let client_id = "1093431122"
let client_secret = "db1a6de6c5bf8dd5886f5b5539fddc94"
let redirect_uri = "http://www.itheima.com"

let ScreenHeight = UIScreen.mainScreen().bounds.height
let ScreenWidth = UIScreen.mainScreen().bounds.width

//全局的日期时间对象
let sharedDF = NSDateFormatter()

//通知名称
let MYSwitchController = "MYSwitchController"


//全局统一错误提示
let AppError = "世界上最遥远的距离就是没网"

//全局的baseTag
let baseTag = 1000

//随机色
func randomColor() -> UIColor {

    let red = CGFloat(random() % 256) / 255.0
    let green = CGFloat(random() % 256) / 255.0
    let blue = CGFloat(random() % 256) / 255.0
    
     return UIColor(red: red, green: green, blue: blue, alpha: 0.8)
}
